/*
 * Copyright (c) 2020-2021, Bluetrum Development Team
 *
 * SPDX-License-Identifier: Apache-2.0
 *
 * Change Logs:
 * Date           Author       Notes
 * 2020/12/10     greedyhao    The first version
 */

/**
 * Notice!
 * All functions or data that are called during an interrupt need to be in RAM.
 * You can do it the way exception_isr() does.
 */

#include <rtthread.h>
#include "board.h"
#include "common.h"

/*机智云V2.3 Ardiono IO 扩展板
 * RGBLED - SDA SCL A0
 * IR     - D2
 * T&H    - D3
 * KEY1   - D6
 * KEY2   - D7
 * Motor  - D4 D5
 * Oled   - D11 D13
 * voice  - TX RX
 * */

int main(void)
{
    rt_kprintf("Hello, world\n");
    while (1)
    {
        rt_thread_mdelay(1000*300);
        upload_sensor_data();
    }
}
